package cn.tedu.antconlonysever.contract.dao.persist.repository;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.entity.Order;
import cn.tedu.antconlonysever.contract.pojo.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface IOrderRepository {
    int insert(Order order);
    int insertBatch(List<Order> orderList);
    int deleteById(Long id);
    int deleteByIds(Collection<Long> idList);
    int update(Order order);
    int count();
    int countCusId(Long cusId);
    int countCusIdNotId(@Param("id")Long id, @Param("cus_id") Long lossId);
    OrderStandardVO getStandardById(Long id);
    PageData<OrderListVO> list(Integer pageNum, Integer pageSize);
}
